<?php
class connexionForm extends sfForm
{
  public function configure()
  {
    $this->setWidget('user', new sfWidgetFormInput());
    $this->setWidget('pass', new sfWidgetFormInputPassword());
    $validator = new sfValidatorString(array('min_length' => 1));
    $this->setValidator('user', $validator);
    $this->setValidator('pass', $validator);
    $this->disableLocalCSRFProtection();
    $this->getWidgetSchema()->setNameFormat('connexion[%s]');
  }
}